import Vue from 'vue'
import App from './App'

import store from './store'
import i18n from './conf/i18n/index.js'
import uView from "uview-ui";
import footerBar from "pages/common/footer-bar"
import './permission'
Vue.use(uView);
Vue.use(footerBar);
Vue.component("footerBar",footerBar);

Vue.config.productionTip = false

Vue.prototype.$store = store
Vue.prototype.$onLaunched = new Promise(resolve => {
	Vue.prototype.$isResolve = resolve;
})

// 引入并使用vue-i18n
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)

App.mpType = 'app'
Vue.prototype._i18n = i18n

const app = new Vue({
	i18n,
	store,
	...App
})
app.$mount()
